package com.firefoxking.mysite.dao;

import com.firefoxking.mysite.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {

    int addUser(User user);

    int updateUser(User user);

    int deleteUser(@Param("uid") Integer uid);

    User getUserById(@Param("uid") Integer uid);

    User getUserByCond(@Param("username") String username, @Param("password") String password);
}
